home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
source.exe
/
POSIX
/
SH
/
STD
/
STDC
/
STRERROR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-13
|
326b
|
20 lines
#include <string.h>
/*
* strerror - map error number to descriptive string
*
* This version is obviously somewhat Unix-specific.
*/
char *
strerror(errno)
int errno;
{
extern int sys_nerr;
extern char *sys_errlist[];
if (errno > 0 && errno < sys_nerr)
return(sys_errlist[errno]);
else
return("unknown error");
}